package redis

import (
	"hft/global"

	redisClient "github.com/go-redis/redis"
)

func InitRedis() *redisClient.Client {
	return redisClient.NewClient(&redisClient.Options{
		Addr:     global.OC_CONFIG.Redis.Addr,
		Password: global.OC_CONFIG.Redis.Password,
		DB:       global.OC_CONFIG.Redis.DB,
	})
}
